import { RouteConfig } from 'vue-router'
import Layout from '@/layout/index.vue'

const postsRoutes: RouteConfig = {
  path: '/posts',
  component: Layout,
  name: 'Posts',
  meta: {
    title: 'postManagement',
    icon: 'example'
  },
  children: [
    {
      path: 'tracks',
      component: () => import(/* webpackChunkName: "posts" */ '@/views/posts/tracks/index.vue'),
      name: 'Tracks',
      meta: { title: 'tracksManagement' }
    },
    {
      path: 'scores',
      component: () => import(/* webpackChunkName: "posts" */ '@/views/posts/scores/index.vue'),
      name: 'Scores',
      meta: { title: 'scoresManagement' }
    }
  ]
}

export default postsRoutes
